def fibonacci(n):
    if n == 0:
        return [0]
    elif n == 1:
        return [0,1]
    else:
        result = [0,1]
        for i in range(1,n-1):
            result.append(result[-1]+result[-2])
        return result

n = int(input("整数:"))
print(fibonacci(n))







